import { Hono } from 'hono'

const app = new Hono().get(
  '/todo/:id',
  (c) => {
    // 逻辑代码...

    return c.json({ id: c.req.param('id'), time: new Date().toISOString() })
  }
).get('/hello2', (c) => {
  return c.json({
    message: 'Hello Next.js!'
  })
})

export default app
